# Maintainer: Taner Tas <taner76@gmail.com>
pkgname=xload
pkgver="1.1.3"
pkgrel=0
pkgdesc="System load average display for X"
url="https://xorg.freedesktop.org"
arch="all"
license="MIT"
depends="libintl"
makedepends="libx11-dev libxaw-dev libxmu-dev libxt-dev gettext-dev"
subpackages="$pkgname-doc"
source="https://www.x.org/archive/individual/app/${pkgname}-${pkgver}.tar.bz2"

build() {
	export CFLAGS="$CFLAGS -DRLOADSTUB"
	export LIBS="$LIBS -lintl"
	cd "$builddir"
	 ./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--disable-nls
	make
}

check(){
	make -C "$builddir" check
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="8dbc4f0cee7b30d7381be819152b27653d9b0049266e59bde2e2c972a88c4f2bdea766fc407bbdfef15d0aab30fedc756189a1048170a812853133a5094fe7a5  xload-1.1.3.tar.bz2"
